Skip to content

document the stopwatch plugin #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2016
Merged

document the stopwatch plugin #88

merged 1 commit into from
Feb 19, 2016

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Feb 18, 2016

fix #36

foreach ($section->getEvents() as $name => $event) {
echo sprintf('Request %s took %s ms and used %s bytes of memory', $name, $event->getDuration(), $event->getMemory());
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know if this should be here, but Stopwatch plugin can be inconsistent when using async (not the real time, neither memory as it can change if user is doint another async operation). Maybe adding a warning about that (not sure also, don't want to complicate too much the documentation)

Copy link
Contributor Author

@dbu dbu Feb 18, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joelwurtz
Copy link
Member

LGTM 👍

@dbu dbu force-pushed the stopwatch-plugin branch from 9244947 to 378f627 Compare February 18, 2016 21:55
sagikazarmark added a commit that referenced this pull request Feb 19, 2016
@sagikazarmark sagikazarmark merged commit ca27f93 into master Feb 19, 2016
@sagikazarmark sagikazarmark deleted the stopwatch-plugin branch February 19, 2016 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document Stopwatch Plugin
3 participants